package com.xwj.dao;

import com.xwj.dto.OrderInfoDto;
import com.xwj.entity.RaOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface RaOrderDao {

    List<RaOrder> findAllOrder();

    List<RaOrder> findByProperty(OrderInfoDto orderInfoDto);

    List<RaOrder> frontFindByProperty(OrderInfoDto orderInfoDto);

    RaOrder findOrderById(String id);

    List<RaOrder> findOrderByLandlordId(String landlordId);

    List<RaOrder> findOrderByTenantId(String tenantId);

    List<RaOrder> findOrderByStatus(int status);

    int addOneOrder(RaOrder raOrder);

    int updateProperty(OrderInfoDto orderInfoDto);

    int updateDetail(Map<String, Object> map);

    int deleteByIds(List<String> list);

    int updateDelflag(List<String> list);
}
